package com.cslc.consumer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.cslc.provider.service.ProviderService;

/**
 * Hello world!
 */
public class ConsumerApp {

	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception {

		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "dubbo-consumer.xml" });
		context.start();
		ProviderService providerService = context.getBean(ProviderService.class);
		String say = providerService.say("dubbo!!");
		System.out.println("response=" + say);
		System.in.read(); // 按任意键退出

	}
}
